import Vue from 'vue'
import App from './App.vue'
import ElementUI from "element-ui"
import VueRouter from "vue-router"
import 'element-ui/lib/theme-chalk/index.css'

import Login from "./components/Login/Login"
import Index from "./components/Index/Index"
import ResidentialQuarters from "./components/ResidentialQuarters/ResidentialQuarters"
import ResidentialQuartersInfo from "./components/ResidentialQuarters/ResidentialQuartersInfo"


Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(VueRouter)


var router = new VueRouter({
	routes:[
		{
			path:'/',redirect:'/login'
		
		},
		{
			path:'/login',component:Login
		},
		
		{
			path:'/index',component:Index
		},
		
		
		{
			path:'/residentialQuarters',component:ResidentialQuarters
		},
		{
			path:'/residentialQuartersInfo/:id',component:ResidentialQuartersInfo
		}
	]
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
